home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / BORLAND TURBO / OCXCONT.PAK / OCXCONT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  3.1 KB  |  81 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1995, 1996 by Borland International, All Rights Reserved
  4. //
  5. // $Revision:   10.0  $
  6. //
  7. // Sample illustrating a container with an OCX as client window
  8. //----------------------------------------------------------------------------
  9. #if !defined(_OCXCONT_H)
  10. #define _OCXCONT_H
  11.  
  12. #if !defined(OWL_OLEWINDOW_H)
  13. # include <owl/olewindo.h>
  14. #endif
  15.  
  16. // Application's main client window
  17. //
  18. class TOCXContWindow : public TOleWindow {
  19.  
  20.   public:
  21.     TOCXContWindow(TWindow* parent = 0);
  22.  
  23.     // Override virtuals of TWindow
  24.     //
  25.     void  SetupWindow();
  26.  
  27.     // Override default handlers of Property/Event notifications/request
  28.     //
  29.  
  30.     // Ambient property specific messages
  31.     //
  32.     bool      EvOcAmbientGetBackColor(long* rgb);
  33.     bool      EvOcAmbientGetForeColor(long* rgb);
  34.     bool      EvOcAmbientGetLocaleID(long* locale);
  35.     bool      EvOcAmbientGetTextAlign(short* align);
  36.     bool      EvOcAmbientGetMessageReflect(bool* msgReflect);
  37.     bool      EvOcAmbientGetUserMode(bool* mode);
  38.     bool      EvOcAmbientGetUIDead(bool* dead);
  39.     bool      EvOcAmbientGetShowGrabHandles(bool* show);
  40.     bool      EvOcAmbientGetShowHatching(bool* show);
  41.     bool      EvOcAmbientGetDisplayAsDefault(bool* disp);
  42.     bool      EvOcAmbientGetSupportsMnemonics(bool* support);
  43.     bool      EvOcAmbientGetDisplayName(TString** name);
  44.     bool      EvOcAmbientGetScaleUnits(TString** units);
  45.     bool      EvOcAmbientGetFont(IDispatch** font);
  46.  
  47.     bool      EvOcAmbientSetBackColor(long rgb);
  48.     bool      EvOcAmbientSetForeColor(long rgb);
  49.     bool      EvOcAmbientSetLocaleID(long locale);
  50.     bool      EvOcAmbientSetTextAlign(short align);
  51.     bool      EvOcAmbientSetMessageReflect(bool msgReflect);
  52.     bool      EvOcAmbientSetUserMode(bool mode);
  53.     bool      EvOcAmbientSetUIDead(bool dead);
  54.     bool      EvOcAmbientSetShowGrabHandles(bool show);
  55.     bool      EvOcAmbientSetShowHatching(bool show);
  56.     bool      EvOcAmbientSetDisplayAsDefault(bool disp);
  57.     bool      EvOcAmbientSetSupportsMnemonics(bool support);
  58.     bool      EvOcAmbientSetDisplayName(TString* name);
  59.     bool      EvOcAmbientSetScaleUnits(TString* units);
  60.     bool      EvOcAmbientSetFont(IDispatch* font);
  61.  
  62.     // Ctrl event specific messages
  63.     //
  64.     bool      EvOcCtrlClick(TCtrlEvent* pev);
  65.     bool      EvOcCtrlDblClick(TCtrlEvent* pev);
  66.     bool      EvOcCtrlMouseDown(TCtrlMouseEvent* pev);
  67.     bool      EvOcCtrlMouseMove(TCtrlMouseEvent* pev);
  68.     bool      EvOcCtrlMouseUp(TCtrlMouseEvent* pev);
  69.     bool      EvOcCtrlKeyDown(TCtrlKeyEvent* pev);
  70.     bool      EvOcCtrlKeyUp(TCtrlKeyEvent* pev);
  71.     bool      EvOcCtrlErrorEvent(TCtrlErrorEvent* pev);
  72.     bool      EvOcCtrlFocus(TCtrlFocusEvent* pev);
  73.     bool      EvOcCtrlPropertyChange(TCtrlPropertyEvent* pev);
  74.     bool      EvOcCtrlPropertyRequestEdit(TCtrlPropertyEvent* pev);
  75.     bool      EvOcCtrlCustomEvent(TCtrlCustomEvent* pev);
  76.  
  77.   DECLARE_RESPONSE_TABLE(TOCXContWindow);
  78. };
  79.  
  80. #endif  // _OCXCONT_H
  81.